package Homework;

public class Demo05 {

	public static void main(String[] args) {
		Object lock = new Object();
		IsChild isChild = new IsChild(26);
		
		PrintNumber childThread = new PrintNumber(lock,isChild);
		PrintLetter parentThread = new PrintLetter(lock,isChild);
		
		parentThread.start();		
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		childThread.start();
	}

}
